﻿
@model List<deviceManage.Models.Device>
@{
    Layout = null;
}

<div class="layui-form" lay-filter="repairForm" style="padding: 20px 30px 0 0;">

    <div class="layui-form-item">
        <label class="layui-form-label">设备名称</label>
        <div class="layui-input-inline" style="width:400px;">
            <select name="deviceId"  lay-verify="required" lay-search>
                <option></option>
                @foreach (var type in Model)
                {
                    <option value="@type.Id">@type.Name</option>
                }
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">送修部门</label>
        <div class="layui-input-inline" style="width:400px;">
            <input type="text" name="depart" lay-verify="required" placeholder="请输入送修部门"
                   autocomplete="off" class="layui-input layui-form-danger" maxlength="100">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">送修日期</label>
        <div class="layui-input-inline">
            <input type="text" name="BeginDate" value="" lay-verify="required" readonly id="beginDate"
                   placeholder="开始日期" autocomplete="off" class="layui-input date">
        </div>
        <div class="layui-form-mid">-</div>
        <div class="layui-input-inline">
            <input type="text" name="EndDate" value="" lay-verify="required" readonly id="endDate"
                   placeholder="结束日期" autocomplete="off" class="layui-input date">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">维修原因</label>
        <div class="layui-input-inline">
            <textarea name="remark" class="layui-input" style="height:80px;width:400px;"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">解决方案</label>
        <div class="layui-input-inline">
            <textarea name="solution" class="layui-input" style="height:80px;width:400px"></textarea>
        </div>
    </div>

    <div style="text-align:center;">
        <input type="button" lay-submit="" lay-filter="saveRepair" value="确认" class="layui-btn">
    </div>
</div>